package com.coocaa.ops.admin.v1.hvi;

import com.coocaa.ops.admin.base.controller.MgrBaseController;
import com.coocaa.ops.admin.v1.hvi.model.HistoryQueryModel;
import com.coocaa.ops.admin.v1.hvi.service.HistoryVersionInfoServiceImpl;
import com.coocaa.ops.admin.v1.hvi.validator.HistoryInfoValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bijiahao
 * @date : 2018/6/12.
 * @description: 历史版本数据 前端控制器
 *
 */
@RestController
@RequestMapping("/v1/hvi")
public class HistoryVersionInfoController extends MgrBaseController {

    @Autowired
    private HistoryVersionInfoServiceImpl historyVersionInfoService;

    @RequestMapping(value = "/historyList",method = RequestMethod.GET)
    public Object historyList(HistoryQueryModel queryModel) {
        HistoryInfoValidator.valid(queryModel);
        return historyVersionInfoService.getHistoryList(queryModel);
    }


}
